use druid::widget::{Flex, Label};
use druid::{AppLauncher, LocalizedString, Widget, WindowDesc};
pub fn ui() {
    let main_window = WindowDesc::new(ui_builder)
        .title(LocalizedString::new("my-druid-app").with_placeholder("My Druid App"))
        .window_size((400.0, 400.0));

    AppLauncher::with_window(main_window)
        .use_simple_logger()
        .launch(())
        .expect("launch failed");
}

fn ui_builder() -> impl Widget<()> {
    let label = Label::new("Hello, Druid!");
    let flex = Flex::column().with_child(label);
    flex
}
